#include<stdio.h>
int main() {
	int arr[] = {0, 2, 1, 3, 4, 5, 6, 7, 8, 9, 10 };
	int* p = arr;
	int sz = sizeof(arr) / sizeof(arr[0]);
	for (int i = 0; i < sz; i++) {
		for (int j = i + 1; j < sz; j++) {
			if (* (p + i) > * (p + j)) {
				int temp = * (p + i);
				* (p + i) = * (p + j);
				* (p + j) = temp;
			}
		}
	}
	for (int i = 0; i < sz; i++) {
		printf("%d ", * (p + i));
	}
	return 0;
}
